<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>学员管理管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/teaching/bayUser/">学员管理列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="bayUser" action="${ctx}/teaching/bayUser/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>账号：</label>
				<form:input path="username" htmlEscape="false" maxlength="20" class="input-medium"/>
			</li>
			<li><label>昵称：</label>
				<form:input path="nickname" htmlEscape="false" maxlength="20" class="input-medium"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<tbody>
        <tr>
            <c:if test="${not empty page.list}">
            <c:forEach var="bayUser" items="${page.list}"  varStatus="status">
            <c:if test="${(status.index+1) mod 3 !=1}">
            <td>
                <ul>
                    <li><a href="/" ><b><img src="${ctxStatic}/images/wwd_20180204150208.jpg" /></b></a></li>
                    <li><label>昵称：</label><span>${bayUser.nickname}</span></li>
                    <li><label>手机：</label><span>15102050100</span></li>
                    <li><label>口号：</label><span>买机票，上京东</span></li>
                </ul>
            </td>
            </c:if>
            <c:if test="${(status.index+1) mod 3==1}">
        <tr>
            <td>
                <li><a href="/" ><b><img src="${ctxStatic}/images/wwd_20180204150208.jpg" /></b></a></li>
                <li><label>昵称：</label><span>${bayUser.nickname}</span></li>
                <li><label>手机：</label><span>15102050100</span></li>
                <li><label>口号：</label><span>买机票，上京东</span></li>
            </td>
            </c:if>
            </c:forEach>
            </c:if>
        </tr>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>